/*    */ package com.zimbra.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.session.SoapSession;
/*    */ import java.util.ArrayList;
/*    */ import java.util.Collections;
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class SoapContextExtension
/*    */ {
/* 31 */   private static List<SoapContextExtension> sExtensions = Collections.synchronizedList(new ArrayList());
/*    */   
/*    */   public static void register(String name, SoapContextExtension sce) {
/* 34 */     synchronized (sExtensions) {
/* 35 */       ZimbraLog.soap.info("Adding context extension: " + name);
/* 36 */       sExtensions.add(sce);
/*    */     }
/*    */   }
/*    */   
/*    */   public static void addExtensionHeaders(Element context, ZimbraSoapContext zsc, SoapSession session) throws ServiceException {
/* 41 */     SoapContextExtension[] exts = null;
/* 42 */     synchronized (sExtensions) {
/* 43 */       exts = new SoapContextExtension[sExtensions.size()];
/* 44 */       sExtensions.toArray(exts);
/*    */     }
/* 46 */     for (SoapContextExtension sce : exts) {
/* 47 */       sce.addExtensionHeader(context, zsc, session);
/*    */     }
/*    */   }
/*    */   
/*    */   public abstract void addExtensionHeader(Element paramElement, ZimbraSoapContext paramZimbraSoapContext, SoapSession paramSoapSession)
/*    */     throws ServiceException;
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/soap/SoapContextExtension.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */